<?php

// No direct access
defined('_JEXEC') or die;

jimport('joomla.application.component.controller');

class AdmissaoController extends JController {
    
    function __construct($config = array())
	{
		if (JRequest::getCmd('view') === 'admissoes' && JRequest::getCmd('layout') === 'modal') {
			JHtml::_('stylesheet','system/adminlist.css', array(), true);
			$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
		}

		parent::__construct($config);
	}
    
    
    public function display($cachable = false, $urlparams = false) {
        $cachable = true;
        
        $document = JFactory::getDocument();
        
        $vName = JRequest::getCmd('view', 'admissoes');
        JRequest::setVar('view', $vName);
        
        $user = JFactory::getUser();
        
        parent::display($cachable, $urlparams);
        
        return $this;
    }
}
